﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.AdvertPlace.Model
{
    public class AdvertPlaceSet
    {
        /// <summary>
        /// 广告位标题
        /// </summary>
        [NullValidate("shop.advert.place.title.null")]
        [LenValidate("shop.advert.place.title.len", 2, 50)]
        public string PlaceTitle { get; set; }

        /// <summary>
        /// 示例图
        /// </summary>
        [FormatValidate("shop.advert.place.example.img.error", ValidateFormat.图片URI)]
        [LenValidate("shop.advert.place.example.img.len", 0, 150)]
        public string ExampleImg { get; set; }

        /// <summary>
        /// 图片设置
        /// </summary>
        public PlaceImageSet ImgSet { get; set; }

        /// <summary>
        /// 广告图片数量
        /// </summary>
        [NumValidate("shop.advert.place.img.num.error", 1, 10)]
        public short ImgNum { get; set; }

        public long? FileId { get; set; }
    }
}
